package com.fengyi.homefurnish.controller;

import com.fengyi.homefurnish.pojo.EmpInfo;
import com.fengyi.homefurnish.service.EmpInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * Created by Administrator on 2017/12/28.
 */
@Controller
public class EmpInfoController {
    @Autowired
    private EmpInfoService empInfoService;

    @RequestMapping("/staff.html")
    public String staff(Model model){
        List<EmpInfo> list = empInfoService.getSeach(1);
        model.addAttribute("list",list);
        return "staff/staff";

    }
}
